package com.cloudlead.common.persistence;

import java.io.Serializable;

/**
 * 验证不通过消息
 * 
 * @author dean.lu
 * 
 */
public class InterpolatedMessage implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3879543503707643204L;
	private String message;
	private String propertyPath;
	private String rootBeanClass;
	private String messageTemplate;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getPropertyPath() {
		return propertyPath;
	}

	public void setPropertyPath(String propertyPath) {
		this.propertyPath = propertyPath;
	}

	public String getRootBeanClass() {
		return rootBeanClass;
	}

	public void setRootBeanClass(String rootBeanClass) {
		this.rootBeanClass = rootBeanClass;
	}

	public String getMessageTemplate() {
		return messageTemplate;
	}

	public void setMessageTemplate(String messageTemplate) {
		this.messageTemplate = messageTemplate;
	}

	@Override
	public String toString() {
		return "{\"message\":\"" + message + "\", \"propertyPath\":\"" + propertyPath
				+ "\", \"rootBeanClass\":\"" + rootBeanClass + "\", \"messageTemplate\":\""
				+ messageTemplate + "\"}";
	}

}
